//
//  ZFBCycleImageCell.m
//  12-支付宝(code)
//
//  Created by apple on 16/10/26.
//  Copyright © 2016年 ly. All rights reserved.
//

#import "ZFBCycleImageCell.h"

@interface ZFBCycleImageCell ()
@property (nonatomic, weak) UIImageView *imageView;
@end

@implementation ZFBCycleImageCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}
/// 搭建界面
- (void)setupUI{
    UIImageView *imageView = [UIImageView new];
    [self.contentView addSubview:imageView];
    self.imageView = imageView;
    
    // 设置约束
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}

- (void)setImage:(UIImage *)image{
    _image = image;
    
    self.imageView.image = image;
}
@end
